<@master template="master/master-loan" title="贷款详情">

<@css href="/easyui/themes/default/easyui.css"/>
<@css href="/easyui/themes/icon.css"/>
<@js src="/easyui/jquery.easyui.min.js"/><@jsRender/>

<!-- 
<div class="mt10">
	<a href="#history" onclick="open_history();"><i class="cklcIco"></i>查看流程现流转节点</a>
	<a class="ml20"
		href="<@url value='/process/auditors?orgNo=${loanapply.ltd}' domain='o2o.admin.workflow'/>"
		target="_blank"><i class="clzjdIco"></i>查看所有流程节点及审核人</a>
</div>
-->
<!-- 贷前状态图 begin -->
<#if loanapply.loanType=='BK'>
<div class="action-ajax-load"
	data-url="<@url value='/wftypeStatus/bk/beforeStatus?loanapplyNo=${loanapply.loanapplyNo}'/>"></div>
<#else>
<div class="action-ajax-load"
	data-url="<@url value='/wftypeStatus/oth/beforeStatus?loanapplyNo=${loanapply.loanapplyNo}'/>"></div>
</#if>
<!-- 贷前状态图  end  -->
 <div class="detailsBox pb80">
 <#assign custType=loanapply.wfType />
 <#assign bankType=loanapply.bankType />
 <!-- 作废信息 start -->
	<#if custType == "T">
		<div class="action-ajax-load "
			data-url="<@url value='/rbadloan/cancleDetail?loanapplyNo=${loanapply.loanapplyNo}' />"></div>
	</#if>
	<!-- 作废信息 end -->
     <div class="detailsBox">
	 <div class="openBox">
	 <!-- 贷款要素 begin -->
	 <h3><i class="jtIco"></i>贷款要素
     </h3>
		<div class="action-ajax-load" data-url="/rback/l_i_common?loanapplyNo=${loanapply.loanapplyNo}"></div>	
		<!-- 贷款要素  end -->
     </div>
    </div>
		
		<!-- 借款人信息  begin -->
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco1"></i>借款人基本信息 
			</h3>
			<div class="action-ajax-load"
				data-url="<@url value='/detail/queryLoanUser?loanapplyNo=${loanapply.loanapplyNo}&loanId=${loanapply.loanId}'/>"
				data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		</div>
		<!-- 借款人信息  end -->
    <!-- 贷款人配偶基本信息start -->
    <#if loanSorpouseUser! >
	    <div class="openBox">
			<h3 class="mt20">
				<i class="jtIco1"></i>借款人配偶基本信息
			</h3>
			<div class="action-ajax-load-show"
				data-url="<@url value='/detail/querySpouseUser?loanapplyNo=${loanapply.loanapplyNo}&loanId=${loanapply.loanId}'/>"
				data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
		</div>
    </#if>
	<!-- 贷款人配偶基本信息end -->	
	
<!-- 1107之前的旧内审数据  start-->
<#if loanapply.isNewNs!="Y">
	
	 <!-- 资产信息start -->
		<div class="action-ajax-load" data-url="<@url value='/assetView/view?loanapplyNo=${loanapply.loanapplyNo}'/>"></div>
	 <!-- 资产信息end -->
	
	 <!-- 门店信息start -->
	 <div class="openBox">
        <h3>
            <i class="jtIco1"></i>门店信息
        </h3>
        <div class="detailTab">
            <div class="action-ajax-load" data-url="<@url value='/customer/shop/list?loanapplyNo=${loanapply.loanapplyNo}'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" >
        </div>
        </div>
     </div>
     <!-- 门店信息end -->
     
</#if>
<!-- 1107之前的旧内审数据  end-->
	
	
<!-- 1107新增内审数据  start-->
<#if loanapply.isNewNs=="Y">
	
		<div class="detailsBox pb80">
	      <div class="openBox">
	        <h3><i class="jtIco"></i>紧急联系人
	        </h3>
	        <div class="detailTab">
	            <div id="contacts-list" class="action-ajax-load" data-url="/contactsInfo/contacts-list?loanapplyNo=${loanapply.loanapplyNo}"
	                 data-ajax-wait-img="<@cdn value='img.wait'/>"></div>
	        </div>
	    </div>
	    
	    <div class="openBox">	
		   <h3><i class="jtIco"></i>夫妻双方资产负债情况
		   </h3>
		   <div class="detailTab">
	             <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/tot_assets/tot_assets_show?loanapplyId=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		   </div> 
	   	</div>
	   
		<div class="openBox">	
		   <h3><i class="jtIco"></i>夫妻双方房产信息
		   </h3>
		   <div class="detailTab">
	             <div id="o2o_house"  class="action-ajax-load" data-url="/house/house_list?loanapplyId=${loanapply.loanapplyNo}" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		   </div> 
	  	</div>
	  	
		<div class="openBox">	
		   <h3><i class="jtIco"></i> 夫妻双方车产信息
		   </h3>
		   <div class="detailTab">
	             <div id="o2o_car"  class="action-ajax-load" data-url="/car/car_list?loanapplyId=${loanapply.loanapplyNo}" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		   </div> 
	  	</div>  
	  	
	  	<div class="openBox">	
		   <h3><i class="jtIco"></i>夫妻双方其他资产信息
		   </h3>
		   <div class="detailTab">
	             <div id="o2o_other_assets"  class="action-ajax-load" data-url="/other_assets/other_assets_list?loanapplyId=${loanapply.loanapplyNo}" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		   </div> 
	  	</div> 
	  	
	<!-- 经营主体信息 start-->
    <div class="detailsBox">
	 <div class="openBox">
       <h3><i class="jtIco"></i>经营主体信息
       </h3>
	   <div class="detailTab">
            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/mainShopInfoView/query_view?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
	 </div>
    </div>
    <!-- 经营主体信息 end-->
		
	<!-- 经营历史 start-->
    <div class="openBox">
        <h3>
            <i class="jtIco"></i>经营历史
        </h3>
        <div class="action-ajax-load-show" data-url="<@url value='/management/td/list?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>">
        <div class="detailTab">
            <div d="management" class="action-ajax-load" data-url="<@url value='/management/td/list?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" >
            </div>
        </div>
        </div>
    </div>
    <!-- 经营历史 end--> 
    
    <!-- 近六个月营业额情况 start-->
    <div class="detailsBox">
	 <div class="openBox">
       <h3><i class="jtIco"></i>近六个月营业额情况
       </h3>
	   <div class="detailTab">
            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/mainMonthInfoView/query_view?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
	 </div>
    </div>
    <!-- 近六个月营业额情况 end--> 
    
    <!-- 经营状况 start-->
    <div class="openBox">	
	   <h3><i class="jtIco"></i>经营状况
	   </h3>
	   <div class="detailTab">
            <div id="oa_result1"  class="action-ajax-load" data-url="<@url value='/managementInfoView/view?loanapplyNo=${loanapply.loanapplyNo}'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
   	</div>
   	<!-- 经营状况 end-->
   	
   	<!-- 新门店信息start -->
	<div class="openBox">
        <h3>
            <i class="jtIco"></i>(新)门店信息
        </h3>
        <div class="detailTab">
            <div class="action-ajax-load" data-url="<@url value='/customer/shop/listnew?loanapplyNo=${loanapply.loanapplyNo}'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" >
        </div>
        </div>
    </div>
	<!-- 新门店信息end -->
    
    <!-- 仓库信息 start-->
    <div class="detailsBox">
	 <div class="openBox">
       <h3><i class="jtIco"></i>仓库信息
       </h3>
	   <div class="detailTab">
            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/mainStoreInfoView/list?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
	 </div>
    </div>
    <!-- 仓库信息 end-->
  	
    <!-- 贷款类型扩展模块_经营补充信息 start,type=可编辑;type=VIEW即只读不可编辑-->
    <!-- 蔬果贷、商超贷经营信息start -->
        <#if loanapply.loanType=='SG'>
        <div class="action-ajax-load" data-url="<@url value='/rmongo/gs_info_lno?loanapplyNo=${loanapply.loanapplyNo}&type=VIEW'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
    	</#if>
        <#if loanapply.loanType=='SC'>
        <div class="action-ajax-load" data-url="<@url value='/rmongo/sc_info_lno?loanapplyNo=${loanapply.loanapplyNo}&type=VIEW'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
    	</#if>
    	<#if loanapply.loanType=='BP' || loanapply.loanType=='BP_JX' || loanapply.loanType=='BK'>
        <div class="action-ajax-load" data-url="<@url value='/rmongo/bk_info_view?loanapplyNo=${loanapply.loanapplyNo}&type=VIEW'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
    	</#if>
	<!-- 蔬果贷、商超贷经营信息end -->
    <!-- 贷款类型扩展模块_经营补充信息 end-->
    
    <!-- 暗访内容 start-->
    <div class="detailsBox">
	 <div class="openBox">
       <h3><i class="jtIco"></i>暗访内容
       </h3>
	   <div class="detailTab">
            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/mainPsInfoView/query_view?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
	 </div>
    </div>
    <!-- 暗访内容 end-->
    
</#if>
<!-- 1107新增内审数据  end-->

    
	<!-- 夫妻双方贷款记录  begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>夫妻双方的贷款记录
		</h3>
		<div class="action-ajax-load-show"
		data-url="<@url value='/customerInfo/rest/loan_detail?customer_id_number=${loanUser.documentNo}&mate_id_number=${loanSorpouseUser.documentNo}' />"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
	</div>
	</div>
	<!-- 夫妻双方贷款记录  end -->
	
	
	
		<!-- 代偿数据 begin -->
	<div class="openBox">
		<h3 class="mt20"><i class="jtIco1"></i>夫妻双方代偿数据</h3>
			<div id="bad_loan_page" class="action-ajax-load" 
				data-url="<@url value='/rbadloan/badLoanPage?idCard=${loanUser.documentNo}&spouseIdCard=${materEntity.documentNo}'/>"
			data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
	</div>
<!-- 代偿数据  end -->
<!-- 逾期数据 begin -->
	<div class="openBox">
		<h3 class="mt20">
		<i class="jtIco1"></i>夫妻双方逾期数据
		</h3>
	<div id="overdue_loan_page" class="action-ajax-load" 
		data-url="<@url value='/overdueReport/overdueLoanPage?idCard=${loanUser.documentNo}&spouseIdCard=${materEntity.documentNo}'/>"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
	</div>
<!-- 逾期数据  end -->
	
	<!-- 逾期信息 begin -->
 		<div class="openBox"> 
 			<h3 class="mt20"> 
				<i class="jtIco1"></i>代偿和逾期信息 
			</h3> 
			<div class="action-ajax-load-show" 
 				data-url="<@url value='/oaDetail/overdue?billCode=${loanapply.billCode}'/>" 
 				data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div> 
		</div>
	<!-- 逾期信息 end -->
	<!-- 夫妻双方担保贷款信息  begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>夫妻双方担保贷款信息
		</h3>
		<div class="action-ajax-load-show"
		data-url='/loanrest/sponsorLoanapply?userId=${loanapply.loanId}'
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
	</div>
	</div>
	<!-- 夫妻双方担保贷款信息  end -->
	
	<!-- 保证金、管理费和风险补偿金 begin -->
	
	<div class="action-ajax-load"
		data-url="<@url value='/rpaymentd/detail?loanapplyNo=${loanapply.loanapplyNo}' />" >
		<p class="onload"></p>
	</div>
	
	<!-- 保证金、管理费和风险补偿金 end -->
	<!-- 夫妻双方征信负债情况 begin -->
	<#if creditReport!=null>
		<div class="openBox">
			<h3>
				<i class="jtIco1"></i>夫妻双方征信负债情况 <@permission
				permissionName="updateCredit"> <#if loanEntity.wfType=='Z' ||
				loanEntity.wfType=='ZF'> <a class="action-ajax-btn fr edit btn_blue"
					data-url="<@url value='/workflowcheck/editZX?referId=${zXSSYHForm.referId}'/>">编辑</a>
				</#if> </@permission>
			</h3>
			<div class="action-ajax-load-show" id="file_uploader"
				data-url="<@url value='/detail/editCredit?referId=${loanapply.loanapplyNo}'/>"
				data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
		</div>
		</#if>
		<!-- 夫妻双方征信负债情况  end -->
	
	<!-- 附件信息 begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco"></i>借款人征信附件
		</h3>
		<div class="action-ajax-load"
			data-url="<@url value='/ro2ozx/detailUploadView?id=${userZxId}&readonly=true'/>">
			<p class="onload"></p>
		</div>
	</div>
	<#if mateZxId!=""&&mateZxId!=null>
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco"></i>配偶征信附件
		</h3>
		<div class="action-ajax-load"
			data-url="<@url value='/ro2ozx/detailUploadView?id=${mateZxId}&readonly=true' />">
			<p class="onload"></p>
		</div>
	</div>
	</#if>
	<!-- 附件信息 begin -->
	<!-- 企业征信begin  -->
			<div class="action-ajax-load"
			data-url="<@url value='/enterpriseZx/zxbgTDViewNot?loanapplyNo=${loanapply.loanapplyNo}'/>"></div>
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco"></i>企业征信附件信息
		</h3>
		<div class="action-ajax-load"
			data-url="<@url value='/ro2ozx/detailUploadView?id=${O2oEnterpriseZxEntity.id}&readonly=true' />">
			<p class="onload"></p>
		</div>
	</div>		
	<!-- 企业征信end  -->
	<!-- 补充征信附件信息 begin -->
	  <div class="openBox">
		    <h3 class="mt20"><i class="jtIco1"></i>补充征信附件信息
		    </h3>
	        <div  class="action-ajax-load-show" data-url="/o2ozx/supplementFile?loanapplyNo=${loanapply.loanapplyNo}&readonly=true" ></div>
		</div>
	<!--补充征信附件信息 end -->
	<!-- 其他附件信息 begin -->
	  <div class="openBox">
		    <h3 class="mt20"><i class="jtIco"></i>其他附件信息
		    <a class="action-ajax-btn fr" data-action-html="#o2o_file" href="/o2oloanapply/datalist?loanApplyNo=${loanapply.loanapplyNo}&readonly=true">刷新</a>
		    </h3>
	       	<div class="dataBable">
	            <div id="o2o_file" class="action-ajax-load" data-url="/o2oloanapply/datalist?loanApplyNo=${loanapply.loanapplyNo}"></div>
			 </div>    
		</div>
	<!--其他附件信息 end -->
	
	<#if loanapply.loanType!='BP'||loanapply.loanType!='BP_JX'||loanapply.loanType!='SG'||loanapply.loanType!='YC'||loanapply.loanType!='SC'>
	<!--财务SD数据 begin  -->
	<#if loanapply.wfType!="NEW">
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>财务审核SD信息
		</h3>
		<div class="action-ajax-load-show"
			data-url="<@url value='/detail/queryFinancialSd?loanapplyNo=${loanapply.loanapplyNo}'/>"
			data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
	</div>
	</#if>
	<!--财务SD数据 end  -->
	<!-- SD系统交易记录汇总表（数据为近6个月内，自动从SD系统获取) begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>SD系统交易记录汇总表（数据为近6个月内，自动从SD系统获取实时数据)
		</h3>
		<div class="action-ajax-load-show"
			data-url="<@url value='/getSdData?customerSd=${loanapply.customerCode}&cno=${loanapply.customerNo}' />"
			data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
		</div>
	</div>
	<!-- SD系统交易记录汇总表（数据为近6个月内，自动从SD系统获取) end -->
	<!-- 财务审核记录 begin -->
	<#if loanapply.wfType!="NEW">
		<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>财务审核记录
		</h3>
	<div class="action-ajax-load-show"
		data-url="<@url value='/detail/queryFinancialAudit?referId=${loanapply.loanapplyNo}' />"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
	</div>
	</div>
	</#if>
	<!-- 财务审核记录 end -->
	</#if>
	<!-- 电核反馈  start -->
	<#if loanapply.wfType == "S" ||
		loanapply.wfType == "O" || loanapply.wfType == "HN">
			<div class="openBox">
				<h3 class="mt20">
					<i class="jtIco1"></i>电核反馈
				</h3>
				<div class="action-ajax-load-show"
					data-url="<@url value='/detail/phone_message_view?referId=${loanapply.loanapplyNo}' />"
					data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
				</div>
			</div>
	</#if>
	<!-- 电核反馈  end -->
	
	<!-- 银行卡详情  begin-->
	<#if loanapply.wfType == "NF" || loanapply.wfType == "S" ||
	loanapply.wfType == "O" || loanapply.wfType == "HN">
	<div class="action-ajax-load"
		data-url="<@url value='/loanDetail/queryBank?loanapplyNo=${loanapply.loanapplyNo}&flag=1' />"></div>
	</#if>
	<!-- 银行卡详情  end-->
	<!-- 内审审批历史记录  begin -->
	<#if foo!="NEW"&&foo!="Z"&&foo!="ZF">
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>审批额度与收费费率
		</h3>
		<div class="action-ajax-load-show"
		data-url="<@url value='/detail/queryAudit?loanapplyNo=${loanapply.loanapplyNo}' />"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
	</div>
	</div>
	</#if>
	
	<#if bankType=='BC'>
	<!-- 银行反馈信息start -->
	<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>银行反馈信息
			</h3>
			<div class="action-ajax-load"
				data-url="<@url value='/detail/bankMessage?loanapplyNo=${loanapply.loanapplyNo}&loanId=${loanapply.loanId}'/>"></div>
		</div>
	<!-- 银行反馈信息end -->
	</#if>
	<!-- 内审审批历史记录  end -->
	<#if loanapply.wfType=='DC'>
	<!-- 代偿分期信息begin -->
	<div class="action-ajax-load"
			data-url="<@url value='/back/loan_list?loanapplyNo=${loanapply.loanapplyNo}' />">
	</div>
	<!-- 代偿分期信息end -->
	</#if>
	<!-- 夫妻双方的逾期和代偿信息 begin 
	<div class="action-ajax-load" data-url="<@url value='/overdueReport/report_view?idCard=${loanUser.documentNo}&spouseIdCard=${materEntity.documentNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>"> </div>
	-->
	<!-- 夫妻双方的逾期和代偿信息  end -->
	<#if loanapply.wfType=='NEW'|| loanapply.wfType=='Z' ||loanapply.wfType=='ZF' >
	<!-- 夫妻双方贷款记录  begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>夫妻双方的贷款记录
		</h3>
		<div class="action-ajax-load-show"
		data-url="<@url value='/customerInfo/rest/loan_detail?customer_id_number=${loanUser.documentNo}&mate_id_number=${materEntity.documentNo}'  />"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
	</div>
	</div>
	</#if>
	<!-- 夫妻双方贷款记录  end -->
	
	<!-- 增加担保人  begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>担保人
			<@permission permissionName="sponsorAddCode">
				<a class="action-ajax-btn fr" data-action-html="#o2o_SponsorList" href="/loanrest/sponsorDetail?loanapplyNo=${loanapply.loanapplyNo}">&nbsp&nbsp&nbsp&nbsp刷新&nbsp&nbsp&nbsp&nbsp</a>
				<#if custType=="NEW" || custType=="Z" ||
					custType=="ZF" || custType=="N" > <a class="action-ajax-btn fr edit btn_blue"
						data-url="<@url value='/loanrest/toAdd_sponsor?loanapplyNo=${loanapply.loanapplyNo}' />">新增加担保人</a>
				</#if>
			</@permission>
			<@permission permissionName="dbrPrint">
				<#if loanapply.wfType == "NF" || loanapply.wfType == "S" ||loanapply.wfType == "O" || loanapply.wfType == "HN">
				   <#if loanapply.bankLoanName=="BC">
				       <#if materEntity!=null>
						   <a class="fr edit btn_blue"   href="<@url value='/downloadMateDbPdf?loanapplyNo=${loanapply.loanapplyNo}'/>">配偶担保打印</a>
						</#if> 
						<a class="fr edit btn_blue"   href="<@url value='/downloadBusinessDbPdf?loanapplyNo=${loanapply.loanapplyNo}'/>">企业担保打印</a>
					</#if> 
			    </#if> 
		   </@permission> 
		</h3>
	    <div id="o2o_SponsorList" class="action-ajax-load-show" data-url="/loanrest/sponsorDetail?loanapplyNo=${loanapply.loanapplyNo}" style="display: none"></div>
	</div>
	<!-- 增加担保人  end -->
	<!-- 特殊面签申报意见 start -->
	<#if specialInterview??>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco1"></i>特殊面签提报意见
			</h3>
			<div class="action-ajax-load-show"
				data-url="<@url value='/detail/tsmqsb_detail?referId=${loanapply.loanapplyNo}' />"
				data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
			</div>
		</div>
		</#if>
	<!-- 特殊面签申报意见 end -->
	<!-- 工作流历史记录 begin -->
	<div class="action-ajax-load" id="history"
		data-url="<@url value='${agreeUrl}' />"></div>
	<!-- 工作流历史记录 end -->
	<!-- 动态按钮 -->
	<div  id="detailBtnDiv" class=" tac footFixed">
		<span class="action-ajax-load"
			data-url="<@url value='/detail/loan-detail-button?loanapplyNo=${loanapply.loanapplyNo}&billCode=${loanapply.billCode}&wfType=${loanapply.wfType}'/>"></span>
	<@permission permissionName="UpdateInternal">
		 <#if custType=="ZF" || custType=="S"  ||  custType=="N" ||  custType=="NF">
			<a class="btn_auto_30 btn_blue action-ajax-btn" data-url="<@url value='/loanDetail/editInternal?loanapplyNo=${loanapply.loanapplyNo}'/>">修改内审审批额度与费率</a>
		</#if> 
	</@permission>
	<@permission permissionName="UpdateloanapplyExpand">
		 <#if  custType=="S" || custType=="N" ||  custType=="NF">
			<a class="btn_auto_30 btn_blue action-ajax-btn" data-url="<@url value='/loanDetail/editExpand?loanapplyNo=${loanapply.loanapplyNo}'/>">修改收费金额</a>
		</#if> 
   </@permission>
   
   <@permission permissionName="Loanapply_DKDZHKF">
	<a class="btn_auto_30 btn_blue action-ajax-btn" data-url="<@url value='/loanDetail/dkdzh?loanapplyNo=${loanapply.loanapplyNo}&type=KF'/>">扣款（运维）</a>
    </@permission>
   
     <@permission permissionName="Loanapply_DKDZHTF"> 
	<a class="btn_auto_30 btn_blue action-ajax-btn" data-url="<@url value='/loanDetail/dkdzh?loanapplyNo=${loanapply.loanapplyNo}&type=TF'/>">退款（运维）</a>
   	</@permission>
   
   
   <@permission permissionName="UpdateloanapplyOper">
		<a class="btn_auto_30 btn_blue action-ajax-btn" data-url="<@url value='/roper_up/insert_view?loanapplyNo=${loanapply.loanapplyNo}'/>">修改信贷经理</a>
   </@permission>
	<!--	
	<#if loanapply.wfType == "NEW" && loanapply.creatRo==userNo>
		<a class="btn_auto_30 btn_blue action-ajax-btn" href="<@url value='/rbadloan/cacle?loanapplyNo=${loanapply.loanapplyNo}&tType=CANCLE'/>" target="_blank">作废</a>
	</#if>
	-->
	<#if custType != "T">
	<!-- <#if loanapply.bankType!=null> 
	<a class="btn_auto_30 btn_blue"
		href="<@url value='/accessory/help/interview?resourceCode=businessGuidelines'/>"
		target="_blank">空白合同下载</a> </#if> -->	
	<@permission permissionName="lookAllWorkFllowStatus">
	<a href="<@url value='/process/auditors?orgNo=${loanapply.ltd}' domain='o2o.admin.workflow'/>" class="btn_auto_30 btn_blue" target="_blank" />查看所有流程节点及审核人</a>
	</@permission>
	</#if>	
	</div>
</div>
<script type="text/javascript">
	function open_history() {
		$("#history .action-open-button").trigger("click");
	}
</script>
</@master>

